<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>IT服务平台---我的空间</title>
    <s:head theme="ajax"/>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type='text/javascript' src='/gserv/dwr/interface/userDaoImpl.js'></script>
    <script type='text/javascript' src='/gserv/dwr/engine.js'></script>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<SCRIPT type="text/javascript">
		function updatapwd()
		{
			oddpwd=document.getElementById("oddpwd").value;
			pwd=document.getElementById("passWord").value;
			repwd=document.getElementById("repwd").value;
			if(oddpwd=="")
			{
				errormsg.innerHTML='原始密码不能为空！';
			}else if(pwd!=repwd)
			{
				errormsg.innerHTML='两次密码不一致！';
			}else 
				errormsg.innerHTML='';
			
			if(userDaoImpl.checkPwd(oddpwd))
			{
				document.location.href='';
			}
		}
	</SCRIPT>
  </head>
  
  <body>
  	<jsp:include page="header.jsp"></jsp:include>
    <div  style="width: 800px;margin: 0 auto;border-style: solid;border-width: 1px;margin-bottom: 2px;">
    	<div class="navigation"  align="left"><table><tr class="navigation" ><td>你所在位置:<a href="gongxu/index.jsp">首页</a>>我的空间>个人基本信息</td></tr></table></div>
    	<div style="width: 100px;float: left;border-style: solid;border-width: 1px;">
    		<table width="100%">
    			<tr height="40px;" align="center" ><td style="background-color:#66FF33;"><a href="gongxu/usr_getUserInfoById.shtml">基本信息</a></td></tr>
    			<tr height="40px;" align="center"><td><a href="gongxu/gx_callList.shtml">我的呼叫</a></td></tr>
    			<tr height="40px;" align="center"><td><a href="gongxu/Comm_collList.shtml">呼叫收藏</a></td></tr>
    			<tr height="40px;" align="center"><td><a href="gongxu/Comm_getMessAll.shtml">我的信息</a></td></tr>
    		</table>
    	</div>
    	<div style="width:698px; float: right;border-style: solid;border-width: 1px;">
    	<s:tabbedPanel id="room" name="room" doLayout="true" theme="ajax" cssStyle="width:100%;height:600px">
    		<s:div label="个人基本信息" id="basic" theme="ajax">
    		<s:form action="usr_upUserInfo" method="post">
    		<table width="100%" align="center">
    			<tr width="100%"><td colspan="2">
    			<table width="100%">
    			<s:hidden name="userInfo.userInfoId"></s:hidden>
    			<tr><td>用户名：</td><td><s:textfield name="userInfo.userName" readonly="true"></s:textfield></td></tr>
    			<tr><td>邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱：</td><td><s:textfield name="userInfo.email" readonly="true" ></s:textfield> </td></tr>
    			<tr><td>所在地址：</td><td><s:textfield name="userInfo.address"></s:textfield> </td></tr>
    			<tr><td>电&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;话：</td><td><s:textfield name="userInfo.mobile"></s:textfield> </td></tr>
    			<tr><td>手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机：</td><td><s:textfield name="userInfo.phone"></s:textfield> </td></tr>
    			<tr><td>Q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Q：</td><td><s:textfield name="userInfo.QQ"></s:textfield> </td></tr>
    			<tr><td>M&nbsp;&nbsp;&nbsp;&nbsp;S&nbsp;&nbsp;&nbsp;N：</td><td><s:textfield name="userInfo.MSN"></s:textfield> </td></tr>
    			<tr><td>传&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;真：</td><td><s:textfield name="userInfo.fax"></s:textfield> </td></tr>
    			<tr><td>个人网址：</td><td><s:textfield name="userInfo.netSite"></s:textfield> </td></tr>
    			</table>
    			</td></tr>
    			<tr width="100%"><td  colspan="2">
    			<table width="100%">
    			<tr><td colspan="2">公司基本信息</td></tr>
    			<tr><td>公司名称：</td><td><s:textfield name="userInfo.companyName" ></s:textfield> </td></tr>
    			<tr><td>公司地址：</td><td><s:textfield name="userInfo.companAddress" ></s:textfield> </td></tr>
    			<tr><td>公司网址：</td><td><s:textfield name="userInfo.companyNetSite"></s:textfield> </td></tr>
    			<tr><td>法&nbsp;&nbsp;定&nbsp;&nbsp;人：</td><td><s:textfield name="userInfo.legalPeople"></s:textfield> </td></tr>
    			<tr><td>注册资产：</td><td><s:textfield name="userInfo.registerAsset"></s:textfield> </td></tr>
    			<tr><td>注册时间：</td><td><s:date name="userInfo.registerTime" format="yyyy:MM:dd HH:mm:ss"/></td></tr> 
    			</table></td></tr>	
    			<tr><td colspan="2" align="center"><s:submit value="修改"></s:submit> </td></tr>	
    		</table>
    		</s:form>
    		</s:div>
    		<s:div label="修改密码" theme="ajax" id="password">
    			<s:form id="pass" action="usr_upUserInfo" namespace="/gongxu" >
    				<table>
    					<tr><td>原始密码</td><td><input type="password" id="oddpwd" name="oddpwd"/></td><td></td></tr>
    					<tr><td>新密码</td><td><s:password name="passWord"/></td></tr>
    					<tr><td>确认密码</td><td><input type="password" id="rdpwd" name="repwd" /></td></tr>
    					<tr><td colspan="2"><span id="errormsg" style="color:red;"></span></td></tr>
    					<tr><td colspan="2"><input type="button" value="修改" onclick="updatapwd()"/></td> </tr>
    				</table>
    			</s:form>
    		</s:div>
    	</s:tabbedPanel>
    	</div>
    </div>
   <jsp:include page="bottom.jsp"></jsp:include>  
  </body>
</html>
